﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OneSoft.EntityCore;
using OneSoft.DataAccess;
using System.Data;

using BySoft.Server.Consts;
using BySoft.Server.Common.Entity;
using BySoft.Server.Common.Schema;
using BySoft.Server.DataAccess;
namespace BySoft.Server.Business
{
    public partial class SysExceptonlog
    {
        public static bool InsertExceptionLog(SysExceptonlogEntity enLog)
        {

            using (DataAccessBroker broker = DataAccessFactory.Instance())
            {


                return DataAccessCommon.Insert(enLog, "EXCEPTIONLOG_SEQU", "Exceptionlogid", broker);
            }   
          
        }

        public static DataTable GetExceptionLogList(string moduleID, string startDate, string endDate, string exceptionType, int pageIndex,
                                                   int pageSize, out int count)
        {
            count = 0;
            return SysExceptonLogDA.GetExceptionLogList(moduleID, startDate, endDate, exceptionType, pageIndex,pageSize, out count);
        }


        public static DataTable GetExceptionTypeList()
        {
            return SysExceptonLogDA.GetExceptionTypeList();
        }
    }
}
